<template>
<div>
订单号{{this.order_id}}---金额{{this.money}}
  <button @click="pay">支付</button>

</div>
</template>

<script>
export default {
name: "order",
data(){
return{
// order_id:localStorage.getItem('order_id'),
//   money:localStorage.getItem('money')
order_id:this.$route.query.order_id,
money:this.$route.query.money
}
},
methods:{
pay(){
this.$axios.post('/courses/pay',{'id':this.order_id}).then(res=>{

})

}

}
}
</script>

<style scoped>

</style>
